package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RedisController {
//    private String host="10.0.0.1";
//    private Integer port=6379;

    @Value("${redis.host}")
    private String host;

    @Value("${redis.port}")
    private Integer port;

    @RequestMapping("/getNode")
    public String getNode(){
        return "redis节点:"+host+":"+port;
    }
}
